<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>zyOffice form wangEditor</title>
	<script type="text/javascript" src="zyoffice/js/json2.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/jquery-1.4.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="wangEditor.min.js"></script>
	<link type="text/css" rel="Stylesheet" href="demo.css" />
    <link type="text/css" rel="Stylesheet" href="zyoffice/js/jquery-ui-1.8.4/themes/base/jquery-ui.css" />
    <script type="text/javascript" src="zyoffice/js/jquery-ui-1.8.4/ui/jquery-ui.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/w.jqueryui.js" charset="utf-8"></script>
    <script type="text/javascript" src="zyoffice/js/wang.js" charset="utf-8"></script>
	<script type="text/javascript" src="demo.js" charset="utf-8"></script>
    <style type="text/css">
        .zyoffice{background: transparent url(zyoffice/css/w.png) no-repeat;
			width: 32px !important;
			height: 16px !important;
            margin:2px 0 0 2px;
			z-index: 9999;}

		.zywordexport{background: transparent url(zyoffice/css/exword.png) no-repeat;
			width: 32px !important;
			height: 16px !important;
            margin:2px 0 0 2px;
			z-index: 9999;}	
			
		.zyofficepdf{background: transparent url(zyoffice/css/pdf.png) no-repeat;
			width: 32px !important;
			height: 16px !important;
            margin:2px 0 0 2px;
			z-index: 9999;}
	</style>
</head>
<body>	
	<div id="demos"></div>
	<div id="editor">
        <p>欢迎使用 <b>zyOffice for wangEditor3</b> 插件</p>
    </div>	
	<script type="text/javascript">		
		zyOffice.getInstance({
            word:"http://localhost:13710/zyoffice/word/convert",
			wordExport:"http://localhost:13710/zyoffice/word/export",
			pdf:"http://localhost:13710/zyoffice/pdf/upload"			
		});//加载控件

	    var E = window.wangEditor;
        var edt = new E('#editor');
        edt.customConfig.zIndex = 100;
        // 或者 var editor = new E( document.getElementById('editor') )
        edt.create();
        E.zyoffice.init('#editor',edt);
	</script>
</body>
</html>
